#ifndef Pop3StuDialog_H
#define Pop3StuDialog_H

#include <QDialog>
#include "QtNetwork/QTcpSocket"

namespace Ui {
class Pop3StuDialog;
}

class Pop3StuDialog : public QDialog
{
    Q_OBJECT
public:
    QTcpSocket * mSocket;
    // QString user = "hm01@jmtest.cn";
    // QString pass = "admin123";
    QString user = "ggg@607.net";
    QString pass = "123";
    int defaultPort = 110;
    explicit Pop3StuDialog(QWidget *parent = nullptr);
    ~Pop3StuDialog();

private slots:
    void onSocketReceiveData();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_btn_sendCmd_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_11_clicked();

    void on_pushButton_12_clicked();

    void on_pushButton_13_clicked();


    void on_btn_user_clicked();

    void on_btn_pass_clicked();

    void on_btn_connect_clicked();

    void on_btn_mailIndexList_clicked();

    void on_btn_mailUidList_clicked();

    void on_btn_stat_clicked();

    void on_btn_fetchEml_clicked();

    void on_btn_getMailInfo_clicked();

    void on_btn_getMailTop_clicked();

    void on_btn_getMailUid_clicked();

    void on_btn_noop_clicked();

    void on_btn_deleteMail_clicked();

    void on_btn_quit_clicked();

private:
    Ui::Pop3StuDialog *ui;
    void sendCmd(QString cmd);
};

#endif // Pop3StuDialog
